/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Daos;

import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;


/**
 *
 * @author angel
 */
public class DaoEnviaObjeto {

    public boolean conectar(){
        try {
           Socket s = new Socket("127.0.0.1", 9999);

        } catch (UnknownHostException ex) {
            System.out.println("Imposible conectar al servidor");
            return false;
        } catch (IOException ex) {
            System.out.println(ex.getMessage());
            return false;
        }
        return true;
    }




}
